import useUser from "@/hooks/useUser"

// 可以用在组件级别的登录权限控制
const Authorized = ({ children = null }) => {
    const { user } = useUser()

    return user ? children : null
  }


export default Authorized